<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Board Game Software: Game Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Board Game Software
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A board game interface w/ 2 game implementations</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">Game Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for Game:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_game.png" usemap="#Game_map" alt=""/>
  <map id="Game_map" name="Game_map">
<area href="class_breakthrough.html" alt="Breakthrough" shape="rect" coords="0,56,88,80"/>
<area href="class_deathrough.html" alt="Deathrough" shape="rect" coords="98,56,186,80"/>
</map>
 </div></div>

<p><a href="class_game-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad59df6562a58a614fda24622d3715b65"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#ad59df6562a58a614fda24622d3715b65">Game</a> ()</td></tr>
<tr class="memitem:ae3d112ca6e0e55150d2fdbc704474530"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#ae3d112ca6e0e55150d2fdbc704474530">~Game</a> ()</td></tr>
<tr class="memitem:a1d652f9f945163ddbdbea00b28916532"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a1d652f9f945163ddbdbea00b28916532">getPlayerTurn</a> () const </td></tr>
<tr class="memitem:ae8638ccdb0ef3bf39a6affa30aa1258f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#ae8638ccdb0ef3bf39a6affa30aa1258f">startGame</a> ()</td></tr>
<tr class="memitem:ad7abf6b94faaeecdad981d3f8b6bfc7b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#ad7abf6b94faaeecdad981d3f8b6bfc7b">endGame</a> (int winner)</td></tr>
<tr class="memitem:a5a74cd23d3e6aa33686c7daa78cb3d15"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a5a74cd23d3e6aa33686c7daa78cb3d15">makeMove</a> (<a class="el" href="struct_point.html">Point</a> from, <a class="el" href="struct_point.html">Point</a> to)</td></tr>
<tr class="memitem:ade49349011e3a6f7fb48f5c123697fcd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#ade49349011e3a6f7fb48f5c123697fcd">makeSilentMove</a> (<a class="el" href="struct_point.html">Point</a> from, <a class="el" href="struct_point.html">Point</a> to)</td></tr>
<tr class="memitem:a27fb911d996bc26ffba352c16ebc4110"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a27fb911d996bc26ffba352c16ebc4110">undoMove</a> ()</td></tr>
<tr class="memitem:abebf21cde422cff9cdc2624b1f8f2e26"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abebf21cde422cff9cdc2624b1f8f2e26"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>printBoard</b> () const </td></tr>
<tr class="memitem:aa4e9f8d995d7429921e698c7af43f5c8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#aa4e9f8d995d7429921e698c7af43f5c8">legalMoves</a> (std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;p_pieces, std::vector&lt; MyPair &gt; &amp;collectPoints)=0</td></tr>
<tr class="memitem:a4894366f6988ccc716881cee0e58d776"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a4894366f6988ccc716881cee0e58d776">terminalState</a> ()=0</td></tr>
<tr class="memitem:a20693b7ae3eba68bd0f4bdf98a4f6efd"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a20693b7ae3eba68bd0f4bdf98a4f6efd">getName</a> () const =0</td></tr>
<tr class="memitem:a6f77bf581e55b622a1e477b72955c240"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a6f77bf581e55b622a1e477b72955c240">go</a> ()=0</td></tr>
<tr class="memitem:a9fb895bd0ce0684a2cf95d3d212487df"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a9fb895bd0ce0684a2cf95d3d212487df">evaluate</a> ()</td></tr>
<tr class="memitem:a7a8fc4750d12f2dbb47c9256e9edfde1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a7a8fc4750d12f2dbb47c9256e9edfde1">MiniMax</a> (State s, <a class="el" href="struct_point.html">Point</a> &amp;from, <a class="el" href="struct_point.html">Point</a> &amp;to, int depth)</td></tr>
<tr class="memitem:aab825aba93bcbe550cdfe7458a2be132"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#aab825aba93bcbe550cdfe7458a2be132">arrayOfPoints</a> ()</td></tr>
<tr class="memitem:a2d1ca8e45d32a752b7f6eecfd0629a62"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a2d1ca8e45d32a752b7f6eecfd0629a62">getRound</a> () const </td></tr>
<tr class="memitem:a53c868caf158d92509f6db2cd7397362"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a53c868caf158d92509f6db2cd7397362">incRound</a> ()</td></tr>
<tr class="memitem:af6894aff3da555df76732aff9b8c6bfb"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#af6894aff3da555df76732aff9b8c6bfb">getLevel</a> () const </td></tr>
<tr class="memitem:a105ae15af4972344d07c426b558156f6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a105ae15af4972344d07c426b558156f6">setLevel</a> (std::string l)</td></tr>
<tr class="memitem:ac5a9475123e78fb8123230d6f182417a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#ac5a9475123e78fb8123230d6f182417a">isGameStarted</a> () const </td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a4b9291b63d3dcf2da23e3d13feec7023"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4b9291b63d3dcf2da23e3d13feec7023"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_gameStarted</b></td></tr>
<tr class="memitem:af5a5d73d223ac6e520058a1719bfb55d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#af5a5d73d223ac6e520058a1719bfb55d">m_round</a></td></tr>
<tr class="memitem:a908e5e24a5c44bd0b38dd8ff4ac56d4a"><td class="memItemLeft" align="right" valign="top">std::vector&lt; State &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a908e5e24a5c44bd0b38dd8ff4ac56d4a">m_allMoves</a></td></tr>
<tr class="memitem:a9b06e8378ea2c6dab974219ccc6007f7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_board.html">Board</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#a9b06e8378ea2c6dab974219ccc6007f7">m_board</a></td></tr>
<tr class="memitem:af4e49101c1b53d5537fbb3d9d5756220"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_game.html#af4e49101c1b53d5537fbb3d9d5756220">m_level</a></td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad59df6562a58a614fda24622d3715b65"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_game.html#ad59df6562a58a614fda24622d3715b65">Game::Game</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor for the <a class="el" href="class_game.html">Game</a> class </p>

</div>
</div>
<a class="anchor" id="ae3d112ca6e0e55150d2fdbc704474530"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_game.html#ae3d112ca6e0e55150d2fdbc704474530">Game::~Game</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Virtual destructor for the <a class="el" href="class_game.html">Game</a> class </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aab825aba93bcbe550cdfe7458a2be132"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; <a class="el" href="class_game.html#aab825aba93bcbe550cdfe7458a2be132">Game::arrayOfPoints</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return vector of Points </p>

</div>
</div>
<a class="anchor" id="ad7abf6b94faaeecdad981d3f8b6bfc7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_game.html#ad7abf6b94faaeecdad981d3f8b6bfc7b">Game::endGame</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>winner</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Wraps up the current game (someone won) </p>

</div>
</div>
<a class="anchor" id="a9fb895bd0ce0684a2cf95d3d212487df"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_game.html#a9fb895bd0ce0684a2cf95d3d212487df">Game::evaluate</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Evaluate current state </p>

</div>
</div>
<a class="anchor" id="af6894aff3da555df76732aff9b8c6bfb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_game.html#af6894aff3da555df76732aff9b8c6bfb">Game::getLevel</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Gets the current game level </p>

</div>
</div>
<a class="anchor" id="a20693b7ae3eba68bd0f4bdf98a4f6efd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual std::string <a class="el" href="class_game.html#a20693b7ae3eba68bd0f4bdf98a4f6efd">Game::getName</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Name of the game </p>
<dl class="section return"><dt>Returns:</dt><dd>Name of the game </dd></dl>

<p>Implemented in <a class="el" href="class_breakthrough.html#ab2819aaea96ebfae3137227eb638f3f6">Breakthrough</a>, and <a class="el" href="class_deathrough.html#a242977eb0eeb352cbdac977422aeac40">Deathrough</a>.</p>

</div>
</div>
<a class="anchor" id="a1d652f9f945163ddbdbea00b28916532"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_game.html#a1d652f9f945163ddbdbea00b28916532">Game::getPlayerTurn</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the player who's turn it is </p>

</div>
</div>
<a class="anchor" id="a2d1ca8e45d32a752b7f6eecfd0629a62"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_game.html#a2d1ca8e45d32a752b7f6eecfd0629a62">Game::getRound</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the round </p>

</div>
</div>
<a class="anchor" id="a6f77bf581e55b622a1e477b72955c240"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="class_game.html#a6f77bf581e55b622a1e477b72955c240">Game::go</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Makes a move depending on level </p>

<p>Implemented in <a class="el" href="class_breakthrough.html#a1cea05f6e5c3f2ad82f635a57510ec72">Breakthrough</a>, and <a class="el" href="class_deathrough.html#a880060b3002c151b1ea56c4654d34093">Deathrough</a>.</p>

</div>
</div>
<a class="anchor" id="a53c868caf158d92509f6db2cd7397362"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_game.html#a53c868caf158d92509f6db2cd7397362">Game::incRound</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Increments the round </p>

</div>
</div>
<a class="anchor" id="ac5a9475123e78fb8123230d6f182417a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_game.html#ac5a9475123e78fb8123230d6f182417a">Game::isGameStarted</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns whether the game has started </p>

</div>
</div>
<a class="anchor" id="aa4e9f8d995d7429921e698c7af43f5c8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="class_game.html#aa4e9f8d995d7429921e698c7af43f5c8">Game::legalMoves</a> </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>p_pieces</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; MyPair &gt; &amp;&#160;</td>
          <td class="paramname"><em>collectPoints</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Gateway function to board's printBoard() function Returns a vector with all player's legal moves </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p_pieces</td><td>All pieces on the board </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">collectPoints</td><td>All legal moves </td></tr>
  </table>
  </dd>
</dl>

<p>Implemented in <a class="el" href="class_breakthrough.html#a11f0d2850b0cdc9cc2ba0273531128d4">Breakthrough</a>, and <a class="el" href="class_deathrough.html#adfee5b177fb95ee542182e7f665db377">Deathrough</a>.</p>

</div>
</div>
<a class="anchor" id="a5a74cd23d3e6aa33686c7daa78cb3d15"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_game.html#a5a74cd23d3e6aa33686c7daa78cb3d15">Game::makeMove</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Moves a player on the board </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">from</td><td>From location </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">to</td><td>To location </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ade49349011e3a6f7fb48f5c123697fcd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_game.html#ade49349011e3a6f7fb48f5c123697fcd">Game::makeSilentMove</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Moves a player on the board SILENTLY </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">from</td><td>From location </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">to</td><td>To location </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a7a8fc4750d12f2dbb47c9256e9edfde1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_game.html#a7a8fc4750d12f2dbb47c9256e9edfde1">Game::MiniMax</a> </td>
          <td>(</td>
          <td class="paramtype">State&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>to</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>depth</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>MiniMax recursive algorithm </p>

</div>
</div>
<a class="anchor" id="a105ae15af4972344d07c426b558156f6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_game.html#a105ae15af4972344d07c426b558156f6">Game::setLevel</a> </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>l</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the current game level </p>

</div>
</div>
<a class="anchor" id="ae8638ccdb0ef3bf39a6affa30aa1258f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_game.html#ae8638ccdb0ef3bf39a6affa30aa1258f">Game::startGame</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Starts a new game </p>

</div>
</div>
<a class="anchor" id="a4894366f6988ccc716881cee0e58d776"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int <a class="el" href="class_game.html#a4894366f6988ccc716881cee0e58d776">Game::terminalState</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Decides whether some player has reached terminal state (won the game) </p>
<dl class="section return"><dt>Returns:</dt><dd>Player who reached terminal state, otherwise -1 </dd></dl>

<p>Implemented in <a class="el" href="class_breakthrough.html#afaaa6246d4508f06970b87d4556faf00">Breakthrough</a>, and <a class="el" href="class_deathrough.html#aea635842b0c84f50aa13e0c2d7d38533">Deathrough</a>.</p>

</div>
</div>
<a class="anchor" id="a27fb911d996bc26ffba352c16ebc4110"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_game.html#a27fb911d996bc26ffba352c16ebc4110">Game::undoMove</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Undos a player's move </p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a908e5e24a5c44bd0b38dd8ff4ac56d4a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;State&gt; <a class="el" href="class_game.html#a908e5e24a5c44bd0b38dd8ff4ac56d4a">Game::m_allMoves</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Vector with the game board states </p>

</div>
</div>
<a class="anchor" id="a9b06e8378ea2c6dab974219ccc6007f7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_board.html">Board</a>* <a class="el" href="class_game.html#a9b06e8378ea2c6dab974219ccc6007f7">Game::m_board</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Pointer to the game board </p>

</div>
</div>
<a class="anchor" id="af4e49101c1b53d5537fbb3d9d5756220"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="class_game.html#af4e49101c1b53d5537fbb3d9d5756220">Game::m_level</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Current level </p>

</div>
</div>
<a class="anchor" id="af5a5d73d223ac6e520058a1719bfb55d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_game.html#af5a5d73d223ac6e520058a1719bfb55d">Game::m_round</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Variable for game rounds </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_game_8h_source.html">Game.h</a></li>
<li>Game.cpp</li>
</ul>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Sat May 12 2012 04:42:38 for Board Game Software by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
